/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.Socket;
import java.net.SocketException;

/**
 *
 * @author Windows7
 */
public class user {
    
    protected String Name;
    protected InetAddress address;
    protected int port;
    protected DatagramSocket Socket;

    public user() {
    }

    public user(InetAddress address, int port, String Name) throws SocketException {
        this.address = address;
        this.port = port;
        this.Socket = new DatagramSocket();
        this.Name = Name;
    }
    
    

    public user(InetAddress address, int port, DatagramSocket Socket) {
        this.address = address;
        this.port = port;
        this.Socket = Socket;
    }
    
    public user(user s) {
        this.address = s.address;
        this.port = s.port;
        this.Socket = s.Socket;
    }

    public InetAddress getAddress() {
        return address;
    }

    public int getPort() {
        return port;
    }

    public DatagramSocket getSocket() {
        return Socket;
    }

    public void setAddress(InetAddress address) {
        this.address = address;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public void setSocket(DatagramSocket Socket) {
        this.Socket = Socket;
    }
    
    
}